package cn.iocoder.yudao.module.picturebook.controller.admin.classmember.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 班级成员关联新增/修改 Request VO")
@Data
public class ClassMemberSaveReqVO {

    @Schema(description = "班级成员ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4679")
    private Long id;

    @Schema(description = "关联班级", requiredMode = Schema.RequiredMode.REQUIRED, example = "27905")
    @NotNull(message = "关联班级不能为空")
    private Long classId;

    @Schema(description = "关联用户", requiredMode = Schema.RequiredMode.REQUIRED, example = "14857")
    @NotNull(message = "关联用户不能为空")
    private Long userId;

    @Schema(description = "成员名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "成员名称不能为空")
    private String memberName;

    @Schema(description = "角色：1-学生，2-老师", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "角色：1-学生，2-老师不能为空")
    private Integer role;

    @Schema(description = "加入时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime joinTime;

}